<div class="tab-pane show active" id="base">
    @component('store::component.form.form-group')
        @slot('title') 商品分类 @endslot
        @slot('is_must') true @endslot
        <div class="cascader-box position-relative">
            <input type="text" id="category" data-parents='{{$category}}'  class="form-control" readonly="readonly" data-default="{{$goods->category_ids ?? ''}}">
            <input type="hidden" id="category-value" name="category_ids"  value="{{$goods->category_ids ?? ''}}">
        </div>
    @endcomponent

    @component('store::component.form.form-group')
        @slot('title') 商品名称 @endslot
        @slot('is_must') true @endslot
        @component('store::component.form.input')
            @slot('name') goods_name @endslot
            @slot('value') {{$goods->goods_name ?? ''}} @endslot
        @endcomponent
    @endcomponent

    @component('store::component.form.form-group')
        @slot('title') 商品标题 @endslot
        @component('store::component.form.input')
            @slot('name') goods_title @endslot
            @slot('value') {{$goods->title??''}} @endslot
        @endcomponent
    @endcomponent

    @component('store::component.form.form-group')
        @slot('title') 商品关键词 @endslot
        @component('store::component.form.textarea')
            @slot('name') keywords @endslot
            @slot('row') 2 @endslot
            @slot('value') {{$goods->keywords??''}} @endslot
        @endcomponent
        @slot('remark') 商品关键词请用逗号分隔；有两个功能，一是可以作为站内关键词查询，在前台搜索框输入关键词后，能够搜索到该商品；二是作为搜索引擎收录使用. @endslot
    @endcomponent

    @component('store::component.form.form-group')
        @slot('title') 商品介绍 @endslot
        @component('store::component.form.textarea')
            @slot('name') description @endslot
            @slot('row') 2 @endslot
            @slot('value') {{$goods->description??''}} @endslot
        @endcomponent
    @endcomponent

    @component('store::component.form.form-group')
        @slot('title') 商品备注 @endslot
        @component('store::component.form.textarea')
            @slot('name') remarks @endslot
            @slot('row') 2 @endslot
            @slot('value') {{$goods->remarks??''}} @endslot
        @endcomponent
    @endcomponent

        @component('store::component.form.form-group')
            @slot('title') 是否上架 @endslot
            <div>
                @foreach(['0'=>'否','1'=>'是'] as $value=>$title)
                    @component('store::component.radio')
                        @slot('title') {{$title}} @endslot
                        @slot('name') status @endslot
                        @slot('value') {{$value}} @endslot
                        @if($value == ($goods->status ?? 0))
                            @slot('checked') checked @endslot
                        @endif
                    @endcomponent
                @endforeach
            </div>
        @endcomponent
        @component('store::component.form.form-group')
            @slot('class') text-left m-b-0 @endslot
            @component('store::component.form.button')
                @slot('elem')a @endslot
                @slot('title')下一步 @endslot
                @slot('size') md @endslot
                @slot('color') danger @endslot
                @slot('href') #price @endslot
                @slot('attr') onclick=stepBtn(this) @endslot
            @endcomponent
        @endcomponent
</div>